var express = require('express');
var router = express.Router();

var DB=require('../../model/db.js');

var Config=require('../../model/config.js').config;

/* GET users listing. */
router.get('/', function(req, res, next) {
  //res.send('用户列表');

  DB.find('user',{},function(err,data){
      res.render('admin/index',{
          host:Config.HOST,
          list:data
      });
  })


});

module.exports = router;
